Skip to content

Add Bonxai Mask move assignment - #187

Merged
fmrico merged 1 commit into
rollingfrom
bonxai_mask_move_assignment
Nov 24, 2026
Merged

fmrico merged 1 commit into
rollingfrom
bonxai_mask_move_assignment

Conversation

@fmrico

@fmrico fmrico commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #186.

Adds Mask & operator=(Mask &&), taken from RoboStack's patch (thanks to the RoboStack team), so that Grid move assignment compiles.

Adds bonxai_mask_move_tests: inline and heap masks, moves between different sizes, self-move, chained moves, reuse of a moved-from mask, and Grid<float> move assignment. The test does not compile without the fix, and it passes with ASan/UBSan.

Signed-off-by: Francisco Martín Rico <[email protected]>
@fmrico
fmrico merged commit 1031cd6 into rolling Nov 24, 2026
1 check passed
@fmrico
fmrico deleted the bonxai_mask_move_assignment branch November 24, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bonxai Mask has no move assignment, so Grid move assignment does not compile

1 participant